let majorlist= new Promise(function(resolve, reject){
     axios.post('/api/getMajorlist').then(res=>{
         resolve (res.data)
    })
})
